#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <locale.h>

int main()
{
	int simb=0, str=1, word=1, space=0, strbreak=0, c;
	char name1[256];
	FILE * pFile1 = NULL;
	scanf("%s", name1);
	pFile1 = fopen(name1,"rb");

	c=fgetc(pFile1);
	if (c!=EOF)
	{
		while (c!=EOF)
		{

			if (c=='\n')
			{
				str++;
				strbreak++;
			}
			if (isspace(c)==0 && c!='\n' && c!=EOF)
			{
				simb++;
			}
			if (isspace(c)!=0 && space==0)
			{
				space++;
			}
			if (isspace(c)==0 && (space!=0 || strbreak!=0) && c!='\n' )
			{
				space=0;
				strbreak=0;
				word++;
			}
			c=fgetc(pFile1);
		}
	}
	else
	{
		str=0;
		word=0;
	}
	printf("\nsimb: %d", simb);
	printf("\nstr: %d", str);
	printf("\nword: %d\n", word);
	system("PAUSE");
}